<template>
  <div class="top-nav">
    <div class="logo-wrapper">
      <a href="./topup">
        <div class="title font-jdlz">京东·充值</div>
        <div class="desc">chongzhi.jd.com</div>
      </a>

    </div>
    <div class="link-wrapper">
      <a class="active">首页</a>
      <a href="https://help.jd.com/user/issue/list-297-300.html" target="_blank" rel="noreferrer">充值帮助</a>
    </div>
  </div>
</template>

<script setup>
// 在这里写 Composition API 代码
</script>

<style scoped lang="scss">
// 在这里写 SCSS 样式
.top-nav {
  padding: 0 180px;
  background-color: rgb(226, 35, 26);
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center; // 垂直居中内容

  .logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    white-space: nowrap;
    margin-right: 50px; // 调整与链接区域的间距

    a {
      text-decoration: none;
      color: white;
      .title {
        font-size: 26px;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 4px; // 标题与描述的间距
      }

      .desc {
        font-size: 14px;
      }
    }
  }

  .link-wrapper {
    display: flex;
    padding-bottom: 12px; // 调整底部内边距，使下划线位置更合适
    width: 100%;

    a {
      color: #fff;
      text-decoration: none; // 去除默认下划线
      margin: 0 20px; // 链接之间的间距
      font-size: 16px; // 调整字体大小

      &.active {
        font-weight: 700;
        border-bottom: 3px solid #FFFFFF;
        padding-bottom: 4px;
        width: 56px;
      }
    }
  }
}
</style>
